home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / Syn Text Editor 2.1.0.46 / synsetup-2.1.0.46.exe / {app} / scripts / consts.js < prev    next >
Text File  |  2003-08-13  |  10KB  |  310 lines

  1. /*
  2.   syn
  3.   Copyright (C) 2000-2003, Ascher Stefan. All rights reserved.
  4.   stievie@utanet.at, http://web.utanet.at/ascherst/
  5.  
  6.   The contents of this file are subject to the Mozilla Public License
  7.   Version 1.1 (the "License"); you may not use this file except in compliance
  8.   with the License. You may obtain a copy of the License at
  9.   http://www.mozilla.org/MPL/
  10.  
  11.   Software distributed under the License is distributed on an "AS IS" basis,
  12.   WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  13.   the specific language governing rights and limitations under the License.
  14.  
  15.   The Original Code is consts.js, released Wed, 22 May 2002 10:37:17 UTC.
  16.  
  17.   The Initial Developer of the Original Code is Ascher Stefan.
  18.   Portions created by Ascher Stefan are Copyright (C) 2000-2003 Ascher Stefan.
  19.   All Rights Reserved.
  20.  
  21.   Contributor(s): .
  22.  
  23.   Alternatively, the contents of this file may be used under the terms of the
  24.   GNU General Public License Version 2 or later (the "GPL"), in which case
  25.   the provisions of the GPL are applicable instead of those above.
  26.   If you wish to allow use of your version of this file only under the terms
  27.   of the GPL and not to allow others to use your version of this file
  28.   under the MPL, indicate your decision by deleting the provisions above and
  29.   replace them with the notice and other provisions required by the GPL.
  30.   If you do not delete the provisions above, a recipient may use your version
  31.   of this file under either the MPL or the GPL.
  32.  
  33.   You may retrieve the latest version of this file at the syn home page,
  34.   located at http://syn.sourceforge.net/
  35.  
  36.  $Id: consts.js,v 1.5.2.5 2003/08/13 00:38:45 neum Exp $
  37. */
  38.  
  39. // Registry Key where syn saves all Settings
  40. SynRegKey = "HKCU\Software\Ascher\syn";
  41.  
  42. // syn Commands for use with ExecCommand method
  43. //Edit
  44. scEAnsiToOem          =  0;
  45. scEAppendCut          =  1;
  46. scEAppenCopy          =  2;
  47. scEBlockSave          =  3;
  48. scEBlockSort          =  4;
  49. scECheckSpelling      =  5;
  50. scEComment            =  6;
  51. scECopy               =  7;
  52. scECut                =  8;
  53. scEOutdent            =  9;
  54. scEDelete             = 10;
  55. scEDeleteLine         = 11;
  56. scEDeleteToBOL        = 12;
  57. scEDeleteToEOL        = 13;
  58. scEDeleteWord         = 14;
  59. scEDuplicateLines     = 15;
  60. scEEncoding           = 16;
  61. scEFormatLines        = 17;
  62. scEIndent             = 18;
  63. scEInsertDateTime     = 19;
  64. scEInsertFile         = 20;
  65. scEJoinLines          = 21;
  66. scELeadingTabsToSpace = 22;
  67. scELeadingSpaceToTabs = 23;
  68. scEOEMToAnsi          = 24;
  69. scEPaste              = 25;
  70. scERedo               = 26;
  71. scECapitalize         = 27;
  72. scESelectAll          = 28;
  73. scESelectLine         = 29;
  74. scETabsToSpace        = 30;
  75. scEUncomment          = 31;
  76. scEUndo               = 32;
  77. //Search
  78. scSFind               = 33;
  79. scSFindNext           = 34;
  80. scSFindPrev           = 35;
  81. scSFindNextWord       = 36;
  82. scSFindPrevWord       = 37;
  83. scSIncrSearchForward  = 38;
  84. scSIncrSearchBackward = 39;
  85. scSReplace            = 40;
  86. scSGoto               = 41;
  87. scSGotoPrevOutput     = 42;
  88. scSGotoNextOutput     = 43;
  89. scSGotoLastChange     = 44;
  90. scSMatchBracket       = 45;
  91. scSShowCaret          = 46;
  92. //File
  93. scFReopen             = 47;
  94. scFSave               = 48;
  95. scFSaveAs             = 49;
  96. scFSaveFTP            = 50;
  97. scFERxportHTML        = 51;
  98. scFExportRTF          = 52;
  99. scFClose              = 53;
  100. scFProperties         = 54;
  101. scFPrint              = 55;
  102. scFPrintPreview       = 56;
  103.  
  104. // syn Edit Commands for use with ExecEditCommand method
  105. ecNone                = 0x00000000;
  106. ecLeft                = 0x00000001;
  107. ecRight               = 0x00000002;
  108. ecUp                  = 0x00000003;
  109. ecDown                = 0x00000004;
  110. ecWordLeft            = 0x00000005;
  111. ecWordRight           = 0x00000006;
  112. ecLineStart           = 0x00000007;
  113. ecLineEnd             = 0x00000008;
  114. ecPageUp              = 0x00000009;
  115. ecPageDown            = 0x0000000A;
  116. ecPageLeft            = 0x0000000B;
  117. ecPageRight           = 0x0000000C;
  118. ecPageTop             = 0x0000000D;
  119. ecPageBottom          = 0x0000000E;
  120. ecEditorTop           = 0x0000000F;
  121. ecEditorBottom        = 0x00000010;
  122. ecGotoXY              = 0x00000011;
  123.  
  124. ecSelLeft             = 0x00000065;
  125. ecSelRight            = 0x00000066;
  126. ecSelUp               = 0x00000067;
  127. ecSelDown             = 0x00000068;
  128. ecSelWordLeft         = 0x00000069;
  129. ecSelWordRight        = 0x0000006A;
  130. ecSelLineStart        = 0x0000006B;
  131. ecSelLineEnd          = 0x0000006C;
  132. ecSelPageUp           = 0x0000006D;
  133. ecSelPageDown         = 0x0000006E;
  134. ecSelPageLeft         = 0x0000006F;
  135. ecSelPageRight        = 0x00000070;
  136. ecSelPageTop          = 0x00000071;
  137. ecSelPageBottom       = 0x00000072;
  138. ecSelEditorTop        = 0x00000073;
  139. ecSelEditorBottom     = 0x00000074;
  140. ecSelGotoXY           = 0x00000075;
  141.  
  142. ecSelectAll           = 0x000000C7;
  143. ecCopy                = 0x000000C9;
  144.  
  145. ecScrollUp            = 0x000000D3;
  146. ecScrollDown          = 0x000000D4;
  147. ecScrollLeft          = 0x000000D5;
  148. ecScrollRight         = 0x000000D6;
  149.  
  150. ecInsertMode          = 0x000000DD;
  151. ecOverwriteMode       = 0x000000DE;
  152. ecToggleMode          = 0x000000DF;
  153.  
  154. ecNormalSelect        = 0x000000E7;
  155. ecColumnSelect        = 0x000000E8;
  156. ecLineSelect          = 0x000000E9;
  157.  
  158. ecMatchBracket        = 0x000000FA;
  159.  
  160. ecGotoMarker0         = 0x0000012D;
  161. ecGotoMarker1         = 0x0000012E;
  162. ecGotoMarker2         = 0x0000012F;
  163. ecGotoMarker3         = 0x00000130;
  164. ecGotoMarker4         = 0x00000131;
  165. ecGotoMarker5         = 0x00000132;
  166. ecGotoMarker6         = 0x00000133;
  167. ecGotoMarker7         = 0x00000134;
  168. ecGotoMarker8         = 0x00000135;
  169. ecGotoMarker9         = 0x00000136;
  170. ecSetMarker0          = 0x0000015F;
  171. ecSetMarker1          = 0x00000160;
  172. ecSetMarker2          = 0x00000161;
  173. ecSetMarker3          = 0x00000162;
  174. ecSetMarker4          = 0x00000163;
  175. ecSetMarker5          = 0x00000164;
  176. ecSetMarker6          = 0x00000165;
  177. ecSetMarker7          = 0x00000166;
  178. ecSetMarker8          = 0x00000167;
  179. ecSetMarker9          = 0x00000168;
  180.  
  181. ecContextHelp         = 0x000001EA;
  182.  
  183. ecDeleteLastChar      = 0x000001F5;
  184. ecDeleteChar          = 0x000001F6;
  185. ecDeleteWord          = 0x000001F7;
  186. ecDeleteLastWord      = 0x000001F8;
  187. ecDeleteBOL           = 0x000001F9;
  188. ecDeleteEOL           = 0x000001FA;
  189. ecDeleteLine          = 0x000001FB;
  190. ecClearAll            = 0x000001FC;
  191. ecLineBreak           = 0x000001FD;
  192. ecInsertLine          = 0x000001FE;
  193. ecChar                = 0x000001FF;
  194.  
  195. ecImeStr              = 0x00000226;
  196.  
  197. ecUndo                = 0x00000259;
  198. ecRedo                = 0x0000025A;
  199. ecCut                 = 0x0000025B;
  200. ecPaste               = 0x0000025C;
  201.  
  202. ecBlockIndent         = 0x00000262;
  203. ecBlockUnindent       = 0x00000263;
  204. ecTab                 = 0x00000264;
  205. ecShiftTab            = 0x00000265;
  206.  
  207. ecAutoCompletion      = 0x0000028A;
  208.  
  209. ecUpperCase           = 0x0000026C;
  210. ecLowerCase           = 0x0000026D;
  211. ecToggleCase          = 0x0000026E;
  212. ecTitleCase           = 0x0000026F;
  213.  
  214. ecString              = 0x00000276;
  215. ecGotFocus            = 0x000002BC;
  216. ecLostFocus           = 0x000002BD;
  217.  
  218. // Character Encoding
  219. cpWin1251     = 0;
  220. cpKOI8R       = 1;
  221. cpISO88592    = 2;
  222. cpISO88595    = 3;
  223. cpISO88597    = 4;
  224. cpDOS866      = 5;
  225. cpMacCE       = 6;  // Centeral European
  226. cpMacCyrillic = 7;
  227. cpMacGreek    = 8;
  228.  
  229. // Export Type
  230. etHTML  = 0;
  231. etRTF   = 1;
  232. etTeX   = 2;
  233.  
  234. // Linebreak
  235. lbNoChange = 0;
  236. lbWindows  = 1;
  237. lbUNIX     = 2;
  238. lbMac      = 3;
  239.  
  240. // ModalResult constants
  241. mrNone     = 0;
  242. mrOK       = 1;
  243. mrCancel   = 2;
  244. mrAbort    = 3;
  245. mrRetry    = 4;
  246. mrIgnore   = 5;
  247. mrYes      = 6;
  248. mrNo       = 7;
  249. mrAll      = 8;
  250. mrNoToAll  = 9;
  251. mrYesToAll = 10;
  252.  
  253. // Cursors
  254. crDefault   =  0;
  255. crNone      = -1;
  256. crArrow     = -2;
  257. crCross     = -3;
  258. crIBeam     = -4;
  259. crSizeNESW  = -6;
  260. crSizeNS    = -7;
  261. crSizeNWSE  = -8;
  262. crSizeWE    = -9;
  263. crUpArrow   = -10;
  264. crHourGlass = -11;
  265. crDrag      = -12;
  266. crNoDrop    = -13;
  267. crHSplit    = -14;
  268. crVSplit    = -15;
  269. crMultiDrag = -16;
  270. crSQLWait   = -17;
  271. crNo        = -18;
  272. crAppStart  = -19;
  273. crHelp      = -20;
  274. crHandPoint = -21;
  275. crSizeAll   = -22;
  276.  
  277. // Window State
  278. wsNormal    = 0;
  279. wsMinimized = 1;
  280. wsMaximized = 2;
  281.  
  282. // Browse for Folder
  283. BIF_RETURNONLYFSDIRS   = 0x0001;
  284. BIF_DONTGOBELOWDOMAIN  = 0x0002;
  285. BIF_STATUSTEXT         = 0x0004;
  286. BIF_RETURNFSANCESTORS  = 0x0008;
  287. BIF_EDITBOX            = 0x0010;
  288. BIF_VALIDATE           = 0x0020;
  289. BIF_BROWSEFORCOMPUTER  = 0x1000;
  290. BIF_BROWSEFORPRINTER   = 0x2000;
  291. BIF_BROWSEINCLUDEFILES = 0x4000;
  292. BSF_DESKTOP            = 0;    //Desktop is the root directory. With BIF_RETURNONLYFSDIRS circumvents problem with OK-button
  293. BSF_INTERNETEXPLORER   = 1;    //Internet Explorer is the root
  294. BSF_PROGRAMS           = 2;    //Programs folder of the start menu is the root
  295. BSF_CONTROLPANEL       = 3;    //Control Panel is the root. Needs BIF_BROWSEINCLUDEFILES
  296. BSF_PRINTERS           = 4;    //Printers folder is the root. Needs BIF_BROWSEINCLUDEFILES
  297. BSF_DOCUMENTS          = 5;    //Documentsfolder is the root
  298. BSF_FAVORITES          = 6;    //Favorites is the root
  299. BSF_STARTUP            = 7;    //Startup-folder of the startmenu is the root. Needs BIF_BROWSEINCLUDEFILES
  300. BSF_RECENT             = 8;    //Recentfolder is the root. Needs BIF_BROWSEINCLUDEFILES
  301. BSF_SENDTO             = 9;    //Sendto-folder is the root. Needs BIF_BROWSEINCLUDEFILES
  302. BSF_RECYCLEBIN         = 10;   //Recycle Bin is the root. Needs BIF_BROWSEINCLUDEFILES
  303. BSF_STARTMENU          = 11;   //Start Menu is the root
  304. BSF_DESKTOPDIRECTORY   = 16;   //The Desktopdirectory is the root directory
  305. BSF_DRIVES             = 17;   //The drives (My computer) folder is the root
  306. BSF_NETWORK            = 18;   //The networkneighbourhood is the root
  307. BSF_NETHOOD            = 19;   //The nethoodfolder is the root
  308. BSF_FONTS              = 20;   //The fontsfolder is the root
  309. BSF_TEMPLATES          = 21;   //The templatesfolder is the root
  310.